package Demo1299.Demo11;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Dmeo2 {

    public static void main(String[] args) throws IOException {
        Properties pro = new Properties();
        pro.setProperty("uid","001");
        pro.setProperty("username","jack");
        pro.setProperty("password","123");
        FileWriter file = new FileWriter("C:\\Daymate\\src\\Demo1299\\Demo11\\data1.properties");
        pro.store(file,"=");
        file.close();
    }
}
